home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 1 Issue 2
/
PDCD-1 - Issue 02.iso
/
_comms
/
comms
/
_riscbbs
/
!RiscBBS
/
BBS
/
Guess
< prev
next >
Wrap
Text File
|
1991-07-23
|
1KB
|
23 lines
{#more 0 attr 0 7 cls}
{attr 4 3 cll} >>> The Fabulous Arcland Guessing Game <<<{attr 0 7}
{@eval 0 `RND MOD 2000` &if `V0<0` @eval 0 `V0*(-1)`}
{@eval 1 0}
I think of a number between {fg 6}0{fg 7} and {fg 6}1999{fg 7} and you must try to guess it
within {fg 2}10{fg 7} tries... If you succeed, you user-level will go up {fg 6}5{fg 7} units...
if you fail, it'll go down {fg 6}5{fg 7} units !!!
Do you want to continue? (Y/n) {@yesno 1 2 &if V2=0 ~goto +finito}
Succes !!!{~label loop #echo 1 @eval 1 `V1+1` &if `V1>=11` ~goto +fail}
{fg 3 @send `Try ` fg 1 @print 1 fg 3 @send `, make a guess: ` attr 4 7 field 4 @read 2 4 attr 0 6}
{#echo 0 &if `V2=-1` ~eof}
{&if `"V2"=""` @send `Invalid try, you must enter a number!` ~goto loop}
{&if `V2<V0` @send `No, it's greater!` ~goto loop}
{&if `V2>V0` @send `No, it's smaller!` ~goto loop}
{#echo 1 &if SYSOP=0 level +5}
Bravo !!! You've guessed it! Your user-level is now {@eval 0 LEVEL @print 0} !!!
{~eof ~label fail &if SYSOP=0 level -5}
What a pity, you failed! Your user-level is now {@eval 0 LEVEL @print 0} !!!
{~label finito}